package com.aabte.design.pattern.creational.simplefactory;

public class Test {

    public static void main(String[] args) {
        // JavaVideo javaVideo = new JavaVideo();
        // javaVideo.produce();

        VideoFactory videoFactory = new VideoFactory();
        Video java1 = videoFactory.produce("Java");
        java1.produce();

        Video java2 = videoFactory.produce(JavaVideo.class);
        java2.produce();

        Video video = videoFactory.produceExtend(Video.class);
        video.produce();


    }

}
